By leveraging ankyrin-2 (Ank2) to regulate BDNF/TrkB.T1 calcium signaling, astrocytes undergo structural remodeling to physically encapsulate and stabilize memory-storing engram neurons, a mechanism validated through a novel optogenetic tool called Opto-T1.